home *** CD-ROM | disk | FTP | other *** search
- Path: hyppy.systemy.it!usenet
- From: sintesi@orion.it
- Newsgroups: comp.lang.c
- Subject: HELP! - Borland PowerPack + Mouse
- Date: Tue, 02 Jan 1996 10:41:45 GMT
- Organization: Systemy Network s.r.l.
- Message-ID: <4cb1oc$2k0@hyppy.systemy.it>
- NNTP-Posting-Host: usr8.orion.it
- Keywords: PowerPack Extender Mouse
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi all,
-
- We are porting a real-mode application written in Borland C 3.11
- to Borland 4.51 + PowerPack and we have some problems managing DOS and
- BIOS function calls in protected mode. For example mouse driver
- functions.
-
- This is the real-mode code to change the mouse shape.
-
- static int CursorMask[16][2] =
- {0x3fff,0x1fff,0xfff,0x7ff,0x3ff,0x1ff,0xff,0x7f,0x3f,0x3f,0x3f,0x1ff,0x20ff,0xe0ff,0xf0ff,0xf0ff,
- 0,0x8000,0xc000,0xe000,0xf000,0xf800,0xfc00,0xfe00,0xff00,0xff80,0xd800,0x8c00,0xc00,0x600,0x600,0};
-
- void MouseCursor(void)
- {
- _AX = 0x09;
- _BX = 0;
- _CX = 0;
- _ES = FP_SEG(CursorMask);
- _DX = FP_OFF(CursorMask);
- geninterrupt(0x33);
- }
-
- QUESTION: Which is the equivalent protected-mode (32 bit) code ?
-
- Thanks in advance for any help.
-
- Sintesi - Modena - Italy
-
-
-
-
-